package com.example.jikeyoujikeyou.office_sz.view.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.jikeyoujikeyou.office_sz.R;
import com.example.jikeyoujikeyou.office_sz.view.activity.login.LoginActivity;
import com.example.jikeyoujikeyou.office_sz.view.base.BaseActivity;

public class SplashActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        /*1.设置隐藏标题栏*/
        getTitleBar().setVisibility(View.GONE);
        setContentView(R.layout.activity_loding);
        forward();
    }

    /*2.跳转到登陆页面*/
    private void forward(){
        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    Thread.sleep(3000);
                    startActivity(new Intent(SplashActivity.this,LoginActivity.class));
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }).start();
    }

}
